package itheima.com.zuoye.d05;

public class Test {
    public static void main(String[] args) {
        //1.创建电脑对象
        Computer computer = new Computer();
        //2.调用电脑开机方法startup
        computer.startup();
        //3.调用电脑连接外部设备的方法connect(鼠标/键盘/移动硬盘/打印机/...)
        computer.connect(new Mouse());
        computer.connect(new Keyboard());
        //4.调用电脑断开外部设备的方法disConn(鼠标/键盘/移动硬盘/打印机/...)
       computer.disconnect(new Mouse());
       computer.disconnect(new Keyboard());
        //5.调用电脑开机方法shutdown
        computer.shutdown();

    }
}
